//
//  SettingTableViewCell.m
//  fxxiaoke
//
//  Created by 鞠超 on 16/9/5.
//  Copyright © 2016年 jc. All rights reserved.
//

#import "SettingTableViewCell.h"

@implementation SettingTableViewCell

- (instancetype )initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if(self)
    {
        [self p_setupView];
    }
    
    return self;
}

- (void )p_setupView
{
    //
    self.view_lineTop = [[UIView alloc] init];
    self.view_lineTop.backgroundColor = [UIColor groupTableViewBackgroundColor];
    [self.contentView addSubview:self.view_lineTop];
    
    //
    self.view_lineBottom = [[UIView alloc] init];
    self.view_lineBottom.backgroundColor = [UIColor groupTableViewBackgroundColor];
    [self.contentView addSubview:self.view_lineBottom];
    
    //
    self.name_cols = [[UILabel alloc] init];
    self.name_cols.text = @"手机端快速健康";
    self.name_cols.textColor = [UIColor blackColor];
    self.name_cols.font = [UIFont systemFontOfSize:17];
    [self.contentView addSubview:self.name_cols];
    
    //
    self.right_return = [[UIImageView alloc] init];
    self.right_return.image = [UIImage imageNamed:@"rigth-return.png"];
    [self.contentView addSubview:self.right_return];
}

- (void )layoutSubviews
{
    [super layoutSubviews];
    
    self.view_lineTop.frame = CGRectMake(0, 0, SCREEN_WIDTH, 0.5);
    
    self.view_lineBottom.frame = CGRectMake(0, 49.5, SCREEN_WIDTH, 0.5);
    
    self.name_cols.frame = CGRectMake(15, 17.5, 200, 15);
    
    self.right_return.frame = CGRectMake(SCREEN_WIDTH - 5 - 20, 15, 20, 20);
}

@end
